import java.io.FileOutputStream;
import java.io.IOException;
public class FileWriter {
    public void writeFile(byte[] data, String filePath) throws IOException {
        FileOutputStream fos = new FileOutputStream(filePath);
        fos.write(data);
        fos.close();
    }
}